package cn.shlbysj.demo.common;

import java.util.Random;
import java.util.UUID;
/**
 *    主键获取类
 *
 * @author ZhouXiaoGang
 * @date 2018/7/19 0019 11:13
 * @param
 * @return
 */
public class UuidUtil {
    /**
     * 获取UUID
     */
    public static String getUUID(){
        UUID uuid= UUID.randomUUID();
        String str = uuid.toString();
        String uuidStr=str.replace("-", "");
        return uuidStr;
    }
    public static Integer getRand(int end){
        Random r=new Random(end);
        return  r.nextInt();
    }
}
